package com.heny.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.heny.demo.entity.TurnPoint;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author litao.cc
 * @version TurnPointMapper.java v0.1 t2025/4/24 22:34
 * @date 2025/4/24 22:34
 * @description TurnPointMapper
 */
@Mapper
public interface TurnPointMapper extends BaseMapper<TurnPoint> {
    @Select("SELECT id, ST_AsText(coordinate) AS coordinate, index FROM turn_point WHERE id = #{id}")
    TurnPoint selectById(Integer id);
}